<template>
  <div>
    <button @click="add(1)">这是第{{msg}}次单机</button>
    <App2/>
    <App2/>
    <App2/>
  </div>
</template>

<script>
import App2 from "./components/App2"
export default {
  name: 'App',
  components:{
    App2
  },
  data(){
    return{
      msg:0
    }
  },
  methods:{
    add(one){
      this.msg+=one
    }
  }
}
</script>

<style scoped>

</style>
